package com.ysk.test.demo.mapper;

import com.ysk.test.demo.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import javax.websocket.server.PathParam;
import java.util.List;

@Mapper
@Component
public interface RoleMapper {
    List<Role> findAll();

    int save(String rName);

    int delete(Integer rId);

    int update(@PathParam("rId") Integer rId, @PathParam("rName") String rName);
}
